Skip to content

Fix Jump hot reload ignoring nativephp.hot_reload.watch_paths (Issue #160)#161

Open
mylesduncanking wants to merge 1 commit into
NativePHP:mainfrom
mylesduncanking:fix/jump-hot-reload-watch-paths
Open

Fix Jump hot reload ignoring nativephp.hot_reload.watch_paths (Issue #160)#161
mylesduncanking wants to merge 1 commit into
NativePHP:mainfrom
mylesduncanking:fix/jump-hot-reload-watch-paths

Conversation

@mylesduncanking

@mylesduncanking mylesduncanking commented Jun 9, 2026

Copy link
Copy Markdown

Fixes #160

Summary

Jump's bridge file watcher used a hardcoded path list (app, resources, routes, config) and ignored config/nativephp.phphot_reload.watch_paths.
native:watch already reads this config (see WatchesAndroid / WatchesIos), so custom directories like modules/ reload on device builds but not via Jump.

Changes

  • Pass nativephp.hot_reload.watch_paths from JumpCommand to the bridge server via JUMP_WATCH_PATHS
  • Read that env in websocket-server.php with the existing paths as fallback
  • Log resolved watch paths on bridge startup for easier debugging

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Jump hot reload ignores nativephp.hot_reload.watch_paths

1 participant